package com.dede.viewpagertest

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.TextView

/**
 * @author hsh
 * @date 2017/12/8 13:56.
 * @doc
 */
class EmptyFragment : Fragment() {

    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        val textView = TextView(context)
        textView.text = "EmptyFragment"
        textView.gravity = Gravity.CENTER
        val params = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, -1)
        textView.layoutParams = params
        return textView
    }
}